extends menu
block append content
    div(class="container-fluid")
        div(class="row")
            div(class="col-sm-12" collapse="!isCollapsed")
                div(class="panel panel-default")
                    div(class="panel-body")
                        form(role="form" novalidate ng-controller="NewProjectCtrl" name="ProjectForm")
                            fieldset(ng-disabled="processing")
                                div(class="form-group")
                                    label 项目名称
                                    input(type="text" ng-model="Project.ProjectName" name="ProjectName" class="form-control" placeholder="项目名称" required)
                                    div(ng-show="ProjectForm.ProjectName.$dirty&&ProjectForm.ProjectName.$error.required" class="text-danger") 请输入项目名称
                                button(type="button" class="btn btn-primary" id="btnSave" ng-click="save()",data-loading-text="正在创建",ng-disabled="ProjectForm.$invalid") 创建
        div(class="row")
            each p in Projects
                case p.Status
                    when 1
                        div(class="col-sm-4")
                            div(class="list-group")
                                a(href="/Project/Dashboard/"+p.ProjectId class="list-group-item list-group-item-info")
                                    h4(class="list-group-item-heading") <i class="fa fa-bookmark-o fa-fw fa-5x"></i>#{p.ProjectName}
                    when 2
                        div(class="col-sm-4")
                            div(class="list-group")
                                a(href="/Project/Dashboard/"+p.ProjectId class="list-group-item list-group-item-warning")
                                    h4(class="list-group-item-heading") <i class="fa fa-bookmark-o fa-fw fa-5x"></i><s>#{p.ProjectName}</s>
            div(class="col-sm-4")
                div(class="list-group")
                    a(href="javascript:void(0)" ng-click="isCollapsed = !isCollapsed" class="list-group-item list-group-item-success")
                        h4(class="list-group-item-heading") <i class="fa fa-plus fa-fw fa-5x"></i>创建新项目